
<!DOCTYPE html>
<html>

<head>

    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>H+ 后台主题UI框架 - 空白页</title>
    <meta name="keywords" content="">
    <meta name="description" content="">

    <link rel="shortcut icon" href="__STATIC__/layout/favicon.ico">
     <link href="__STATIC__/layout/css/bootstrap.min.css?v=3.3.6" rel="stylesheet">
    <link href="__STATIC__/layout/css/font-awesome.css?v=4.4.0" rel="stylesheet">
     <!-- jqgrid-->
    <link href="__STATIC__/layout/css/animate.css" rel="stylesheet">
    <link href="__STATIC__/layout/css/style.css?v=4.1.0" rel="stylesheet">
    <link href="__STATIC__/layout/css/plugins/sweetalert/sweetalert.css" rel="stylesheet">
    <link href="__STATIC__/layout/css/gyq.css" rel="stylesheet">
    <link rel="stylesheet" href="__STATIC__/layout/css/demo.css" type="text/css">
    <style>
    </style>
</head>

<body style="color:#333;padding:3px;">
    <!-- 标题 -->
    <div class="page-heade">
        <h2 class="title_color text-center">网点信息--查询</h2>
    </div>
    <!-- 标题 -->
    <div>
     <form action="#" method="get" id="form_check"  class="form-inline">
      <input type="hidden" value='{$page}' name="page" id="page-go"/>
                      <input type="hidden" value='{$list}' name="list" id="list-go"/>
    <table class="tab-content table-bordered text-center table bud_hei" border="1" style="margin-bottom:1px">
    	<tr>
			<td style="min-width: 120px;width: 120px;">分区</td>
			<td><input type="text" class="form-control" name="fenqu" value="{$data.fenqu}"></td>
			<td style="min-width: 120px;width: 120px;">省份</td>
			<td><input type="text" class="form-control" name="sheng" value="{$data.sheng}"></td>
			<td style="min-width: 120px;width: 120px;">城市</td>
			<td><input type="text" class="form-control" name="shi" value="{$data.shi}"></td>
    	</tr>
    	<tr>
			<td>经销商编号</td>
			<td><input type="text" class="form-control" name="jxssn" value="{$data.jxssn}"></td>
			<td>经销商名称</td>
			<td><input type="text" class="form-control" name="jxstitle" value="{$data.jxstitle}"></td>
			<td>系统名称</td>
			<td><input type="text" class="form-control" name="systitle" value="{$data.systitle}"></td>
    	</tr>
    	<tr>
			<td>网点编号</td>
			<td><input type="text" class="form-control" name="netsn" value="{$data.netsn}"></td>
			<td>网点名称</td>
			<td><input type="text" class="form-control" name="nettitle" value="{$data.nettitle}"></td>
			<td colspan="2">导购网点：
				<select name="guide" id="" class="form-control select">
                    <option value="0" {if $data.guide==0} selected {/if}>全部</option>
					<option value="1" {if $data.guide==1} selected {/if}>否</option>
					<option value="2" {if $data.guide==2} selected {/if}>是</option>
				</select>
				  <button class="btn btn-sm btn-info query" type="button" id="check">查询</button>
			</td>
    	</tr>
    </table>
         <table class="tab-content table-bordered table bud_hei agencyTable1" border="1" style="margin-bottom:1px">
            <tr class="info">
                <th class="text-center">No.</th>
                <th class="text-center">网点编号</th>
                <th class="text-center">网点名称</th>
                <th class="text-center">所属分区</th>
                <th class="text-center">所属省份</th>
                <th class="text-center">所属城市</th>
                <th class="text-center">所属经销商</th>
                <th class="text-center">所属系统</th>
                <th class="text-center">分区负责人</th>
                <th class="text-center">省份负责人</th>
                <th class="text-center">城市负责人</th>
                <th class="text-center">业务人员</th>
            </tr>
            <tbody style="border:0">
            {volist name="apply" id="vo" key="k"}
                <tr>
					<td class="text-center">{$k}</td>
					<td class="text-center">{$vo.netsn}</td>
					<td><a href="javascript:;">{$vo.net}</a></td>
					<td>{$vo.fenqu}</td>
					<td>{$vo.sheng}</td>
					<td>{$vo.shi}</td>
					<td><a href="javascript:;">{$vo.jxs}</a></td>
					<td><a href="javascript:;">{$vo.sys}</a></td>
					<td>{$vo.fenquhead}</td>
					<td>{$vo.shenghead}</td>
					<td>{$vo.shihead}</td>
					<td>{volist name="$vo.yewu" id="y"} {$y} <br/> {/volist}</td>
					
                </tr>
            {/volist}
                
            </tbody>
         </table>
          <h5 class="text-center">
            总共有{$sum}条记录，第{$page}/{$maxpage}页，当前页：<input id="page" type="text" style="width: 70px;" value="{$page}"  /><span id="gopage">GO</span>&nbsp;&nbsp;<span id="fistpage">首页</span>&nbsp;&nbsp; 每页显示
           <select id="pagesize">
                        <option value='20' {if condition="$list eq 20"}selected{/if}>20条</option>
                        <option value='40'{if condition="$list eq 40"}selected{/if}>40条</option>
                        <option value='50'{if condition="$list eq 50"}selected{/if}>50条</option>

            </select>
        </h5>
    </form>
    </div>
    <!-- 全局js -->
    <script src="__STATIC__/layout/js/jquery.min.js?v=2.1.4"></script>
    <script src="__STATIC__/layout/js/bootstrap.min.js?v=3.3.6"></script>
    <!-- <script src="js/plugins/metisMenu/jquery.metisMenu.js"></script> -->
    <script src="__STATIC__/layout/js/plugins/slimscroll/jquery.slimscroll.min.js"></script>

      <script src="__STATIC__/layout/js/common.js"></script>
    <script>
    //查询
       $("#pagesize").change(function(){
            $("#page-go").val(1);
            $("#list-go").val($(this).val());
            document.getElementById("form_check").submit();
        })
        $("#gopage").click(function(){
             $("#page-go").val($("#page").val());
              document.getElementById("form_check").submit();
        })
        $("#page").keyup(function(){

            if(isNaN(parseInt($(this).val()))){
                $(this).val(1);
            }else{
                $(this).val(parseInt($(this).val()));
            }
            
        })
        $("#fistpage").click(function(){
              $("#page-go").val(1);
             document.getElementById("form_check").submit();
        })
        $("#check").click(function(){
              $("#page-go").val(1);
              document.getElementById("form_check").submit();
        })
        $("#clear_check").click(function(){
            $("input[type='text']").val("");
            $("select").val(0);
            $("#page-go").val(1);
             document.getElementById("form_check").submit();
        })
    </script>
</body>

</html>
